.class public Les/qo;
.super Ljava/lang/Object;
.source "AudioPlayerChromeCastPopMenu.java"


# instance fields
.field private a:Les/gz;

.field private b:Les/zy;

.field private c:Les/v00;

.field private d:Les/v00;

.field private e:Les/v00;

.field private f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

.field private g:Lcom/estrongs/chromecast/ChromeCastManager;

.field private h:Lcom/estrongs/android/pop/app/a0;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/pop/app/PopAudioPlayer;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-static {}, Lcom/estrongs/chromecast/ChromeCastManager;->getInstance()Lcom/estrongs/chromecast/ChromeCastManager;

    move-result-object v0

    iput-object v0, p0, Les/qo;->g:Lcom/estrongs/chromecast/ChromeCastManager;

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Les/qo;->h:Lcom/estrongs/android/pop/app/a0;

    .line 4
    iput-object p1, p0, Les/qo;->f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

    .line 5
    invoke-direct {p0}, Les/qo;->d()V

    return-void
.end method

.method static synthetic a(Les/qo;)Lcom/estrongs/android/pop/app/a0;
    .locals 0

    .line 1
    iget-object p0, p0, Les/qo;->h:Lcom/estrongs/android/pop/app/a0;

    return-object p0
.end method

.method static synthetic b(Les/qo;)Lcom/estrongs/chromecast/ChromeCastManager;
    .locals 0

    .line 1
    iget-object p0, p0, Les/qo;->g:Lcom/estrongs/chromecast/ChromeCastManager;

    return-object p0
.end method

.method private d()V
    .locals 4

    .line 1
    new-instance v0, Les/gz;

    iget-object v1, p0, Les/qo;->f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

    const/4 v2, 0x1

    invoke-direct {v0, v1, v2, v2}, Les/gz;-><init>(Landroid/content/Context;ZZ)V

    iput-object v0, p0, Les/qo;->a:Les/gz;

    .line 2
    new-instance v0, Les/zy;

    iget-object v1, p0, Les/qo;->f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

    invoke-direct {v0, v1, v2}, Les/zy;-><init>(Landroid/content/Context;Z)V

    iput-object v0, p0, Les/qo;->b:Les/zy;

    .line 3
    iget-object v1, p0, Les/qo;->a:Les/gz;

    invoke-virtual {v1, v0}, Les/gz;->a(Les/zy;)V

    .line 4
    iget-object v0, p0, Les/qo;->a:Les/gz;

    iget-object v1, p0, Les/qo;->b:Les/zy;

    invoke-virtual {v1}, Les/zy;->b()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Les/gz;->a(Landroid/view/View;)V

    .line 5
    new-instance v0, Les/v00;

    iget-object v1, p0, Les/qo;->f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f080986

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    iget-object v2, p0, Les/qo;->f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

    const v3, 0x7f110232

    .line 6
    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Les/v00;-><init>(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V

    new-instance v1, Les/qo$a;

    invoke-direct {v1, p0}, Les/qo$a;-><init>(Les/qo;)V

    .line 7
    invoke-virtual {v0, v1}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v0, p0, Les/qo;->c:Les/v00;

    .line 8
    new-instance v0, Les/v00;

    iget-object v1, p0, Les/qo;->f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0809bc

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    iget-object v2, p0, Les/qo;->f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

    const v3, 0x7f11022f

    .line 9
    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Les/v00;-><init>(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V

    new-instance v1, Les/qo$b;

    invoke-direct {v1, p0}, Les/qo$b;-><init>(Les/qo;)V

    .line 10
    invoke-virtual {v0, v1}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v0, p0, Les/qo;->d:Les/v00;

    .line 11
    new-instance v0, Les/v00;

    iget-object v1, p0, Les/qo;->f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f080985

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    iget-object v2, p0, Les/qo;->f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

    const v3, 0x7f11022c

    .line 12
    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Les/v00;-><init>(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V

    new-instance v1, Les/qo$c;

    invoke-direct {v1, p0}, Les/qo$c;-><init>(Les/qo;)V

    .line 13
    invoke-virtual {v0, v1}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v0, p0, Les/qo;->e:Les/v00;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 2
    iget-object v0, p0, Les/qo;->a:Les/gz;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Les/gz;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Les/qo;->a:Les/gz;

    invoke-virtual {v0}, Les/gz;->a()V

    :cond_0
    return-void
.end method

.method public a(Lcom/estrongs/android/pop/app/a0;)V
    .locals 0

    .line 4
    iput-object p1, p0, Les/qo;->h:Lcom/estrongs/android/pop/app/a0;

    return-void
.end method

.method public b()Z
    .locals 1

    .line 2
    iget-object v0, p0, Les/qo;->a:Les/gz;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Les/gz;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public c()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/qo;->b:Les/zy;

    invoke-virtual {v0}, Les/zy;->a()Les/kz;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Les/kz;->h()V

    .line 3
    iget-object v1, p0, Les/qo;->e:Les/v00;

    invoke-virtual {v0, v1}, Les/kz;->a(Les/v00;)V

    .line 4
    iget-object v1, p0, Les/qo;->f:Lcom/estrongs/android/pop/app/PopAudioPlayer;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/PopAudioPlayer;->V()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 5
    iget-object v1, p0, Les/qo;->c:Les/v00;

    invoke-virtual {v0, v1}, Les/kz;->a(Les/v00;)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object v1, p0, Les/qo;->d:Les/v00;

    invoke-virtual {v0, v1}, Les/kz;->a(Les/v00;)V

    .line 7
    :goto_0
    iget-object v0, p0, Les/qo;->a:Les/gz;

    if-eqz v0, :cond_1

    .line 8
    invoke-virtual {v0}, Les/gz;->d()V

    :cond_1
    return-void
.end method
